/**
 * 
 */
package jp.ddo.trismegistos.timer.ascept;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import android.app.Activity;
import android.os.Bundle;

import android.util.Log;


/**
 * @author y_sugasawa
 * @author $Author: aigis.developer@gmail.com $
 * @version $Rev: 41 $ $Date: 2011-09-26 15:42:24 +0000 (Mon, 26 Sep 2011) $
 * 
 */
@Aspect
public class LogAscept {

	@Before("execution(void Activity+.*(..))")
	public void beforAllActivityMethod(final JoinPoint joinPoint) {
		Log.d("HelloAJ", ">> " + joinPoint);
	}

	@Around("execution(void Activity+.*(..))")
	public void AllActivityException(final ProceedingJoinPoint joinPoint) {
		try {
			joinPoint.proceed();
		} catch (Exception e) {
			// TODO 共通のエラー処理
		}
	}

}
